// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning;

public sealed partial class DataframeAnalytics
{
	/// <summary>
	/// <para>For running jobs only, contains messages relating to the selection of a node to run the job.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("assignment_explanation")]
	public string? AssignmentExplanation { get; init; }

	/// <summary>
	/// <para>An object that provides counts for the quantity of documents skipped, used in training, or available for testing.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("data_counts")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsStatsDataCounts DataCounts { get; init; }

	/// <summary>
	/// <para>The unique identifier of the data frame analytics job.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("id")]
	public string Id { get; init; }

	/// <summary>
	/// <para>An object describing memory usage of the analytics. It is present only after the job is started and memory usage is reported.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("memory_usage")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsStatsMemoryUsage MemoryUsage { get; init; }

	/// <summary>
	/// <para>The progress report of the data frame analytics job by phase.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("progress")]
	public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsStatsProgress> Progress { get; init; }

	/// <summary>
	/// <para>The status of the data frame analytics job, which can be one of the following values: failed, started, starting, stopping, stopped.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("state")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeState State { get; init; }
}